package com.hs.srm.admin.modules.requisition.service;

import com.baomidou.mybatisplus.service.IService;
import com.hs.srm.admin.modules.requisition.entity.NproPurchRequestHeaderEntity;
import com.hs.srm.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

public interface NproPurchRequestHeaderService extends IService<NproPurchRequestHeaderEntity> {

    //申请采购头信息
    PageUtils queryPage(Map<String, Object> params);

    //采购实体类
    NproPurchRequestHeaderEntity queryNproPurchRequestHeader();

    //根据主键查找
    NproPurchRequestHeaderEntity selectById(String pkId);

    //根据采购申请单号查询
    NproPurchRequestHeaderEntity findByNo(String purchRequestCode);

    //根据采购单编号来跟新
    void updateName(NproPurchRequestHeaderEntity nproPurchRequestHeaderEntity);

    //根据采购编号查询对应的数据
    List<NproPurchRequestHeaderEntity> selectBatchIds(List<String> ids);

    //改变货源状态
    boolean changeGoodsStatus(int goodsStatus, String requestCode);

    //退单后逻辑删除请购单头数据
    boolean updateByRequestCode(String requestCode);

    NproPurchRequestHeaderEntity selectNproHeader(String purchRequestCode);
}
